<?php
/* Author: Matt Belanger, aka Zurvan on 2+2 Forums
 * Date: January 5, 2010
 * Contributors: 
 */
include('roles.inc');
?>
<html
<head>
  <title>The POG Lynchinator</title>
  <link href="lynchinate.css" rel="stylesheet" />
</head>
<body>
<div id="content">
<p>This is for anybody to run simulations of WW games.  As of right now, it only simulates completely random outcomes.  Any math types are welcome to PM Zurvan on 2+2 to suggest 
adjustments to the methodology to create more accurate simulations.  You're limited to 10,000 iterations per scenario, the default is 1,000.  If this starts getting abused, I will either shut it down
or password protect it.</p>
<h3>Current Features</h3>
<ul>
  <li>Simulate random outcomes based on standard game setups, using only wolves and villagers.  Seers are included only for illustrative purposes, but do not have peeks</li>
</ul>
<h3>Planned Features</h3>
<ul>
  <li>Integrate seer peeks</li>
  <li>Add villager skill adjustments for wolf-lynching</li>
  <li>Add wolf skill adjustments for seer hunting</li>
</ul>
</div>
<form method="post" action="lynchinate.php">
  <fieldset>
    <legend>Setup Options</legend>
    <label>Number of Players:</label>
    <select name="num_players">
      <?php
        $valid_players = array_keys($roles);
        foreach ($valid_players as $num) {
          print '<option value="'.$num.'">'.$num.'</option>';
        }
      ?>
    </select><br>
    <label>Iterations to test:</label>
    <input type="text" name="iterations" value="1000" /><br>
    <input type="submit" value="Lynchinate" />
    <input type="hidden" name="seer" value="No" />
  </fieldset>
</form>
</body>
</html>